#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) JoinQuant Development Team
# Author: Huayong Kuang <kuanghuayong@joinquant.com>

import sys
import logging
import traceback

logging.basicConfig(
    format='%(asctime)s - %(levelname)s - %(message)s',
    level=logging.DEBUG
)

log = logging.getLogger(__name__)
log.info("starting......")

try:
    1/0
except Exception as e:
    log.error("", exc_info=True)
    log.info("-"*50)
    log.exception(e)
    log.info("-"*50)
    log.info(traceback.format_exc())

